﻿using GalaSoft.MvvmLight;
using System;

namespace WPRD.Models
{
    /// <summary>
    /// 数据文件名模型
    /// </summary>
    public class DataFileName : ObservableObject
    {
        #region Private Properties
        /// <summary>
        /// 区站号
        /// </summary>
        private string _stationNumber;

        /// <summary>
        /// 观测时间
        /// </summary>
        private DateTime _observationTime;

        /// <summary>
        /// 雷达型号
        /// </summary>
        private string _radarType;

        /// <summary>
        /// 产品标识（ROBS：实时，HOBS：半小时，OOBS：一小时）
        /// </summary>
        private string _product;
        #endregion

        #region Public Properties
        /// <summary>
        /// 区站号
        /// </summary>
        public string StationNumber
        {
            get
            {
                return _stationNumber;
            }
            set
            {
                if (value == _stationNumber)
                    return;
                _stationNumber = value;
                RaisePropertyChanged("StationNumber");
            }
        }

        /// <summary>
        /// 观测时间
        /// </summary>
        public DateTime ObservationTime
        {
            get
            {
                return _observationTime;
            }
            set
            {
                if (value == _observationTime)
                    return;
                _observationTime = value;
                RaisePropertyChanged("ObservationTime");
            }
        }

        /// <summary>
        /// 雷达型号
        /// </summary>
        public string RadarType
        {
            get
            {
                return _radarType;
            }
            set
            {
                if (value == _radarType)
                    return;
                _radarType = value;
                RaisePropertyChanged("RadarType");
            }
        }

        /// <summary>
        /// 产品标识（ROBS：实时，HOBS：半小时，OOBS：一小时）
        /// </summary>
        public string Product
        {
            get
            {
                return _product;
            }
            set
            {
                if (value == _product)
                    return;
                _product = value;
                RaisePropertyChanged("Product");
            }
        }
        #endregion
    }
}
